package com.wn.icloud.provider;

import org.springframework.data.domain.AuditorAware;

import java.util.Optional;

/**
 * @author star
 * @date 2019/4/19
 **/
public class AuditorProvider implements AuditorAware<String> {

    @Override
    public Optional<String> getCurrentAuditor() {
//        return Optional.of(BaseContextHandler.getUsername());
        return Optional.of("admin");
    }
}
